package com.ground.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * 读取属性文件工具类(key值)
 * @author Administrator
 *
 */
public class PropertiesObject {

	public static String getPropertiesValue(String str) {
		PropertiesObject po = new PropertiesObject();
		InputStream inputStream = po.getClass().getClassLoader()
				.getResourceAsStream("config.properties");
		Properties p = new Properties();
		try {
			p.load(inputStream);
		} catch (IOException e1) {
			e1.printStackTrace();
		}
		return p.getProperty(str);
	}

}
